                      
<div class="col-lg-12">
    <h1 class="page-header">Danh sách menu</h1>
</div>
<div class="col-lg-4">
    <div class="bs-docs-example">
        <?php
            $form = $this->beginWidget('booster.widgets.TbActiveForm', array('type' => 'inline','htmlOptions' => array('class' => 'well','id' => 'h_main_form', 'enctype' => 'multipart/form-data')));
            echo $form->textFieldGroup($model, 'name');
            $this->widget(
                'booster.widgets.TbButton',
                array('buttonType' => 'submit', 'label' => 'lưu dữ liệu')
            );
            $this->endWidget();
            unset($form);
        ?>
    </div>
</div>
<div class="col-lg-12">
    
    <div class="bs-docs-example">
        <div id="yw1" class="grid-view">
            <table class="items table table-striped">
                <thead>
                    <tr>
                        <th id="yw1_c0">#</th>
                        <th id="yw1_c1">Tên menu</th>
                        <th id="yw1_c2">Ngày tạo</th>
                        <th>Xem</th>
                        <th>Xóa</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($menus as $menu):?>
                    <tr class="odd">
                        <td style="width: 60px"><?php echo $menu->id?></td>
                        <td><?php echo $menu->name?></td>
                        <td><?php echo $menu->created?></td>
                        <td>
                            <a class="update" title="" data-toggle="tooltip" href="<?php echo Yii::app()->createUrl('menu/view',array('id' => $menu->id))?>" data-original-title="Update">
                                <i class="glyphicon glyphicon-eye-open"></i>
                            </a> 
                        </td>
                        <td>
                            <a class="delete" title="" data-toggle="tooltip" href="<?php echo Yii::app()->createUrl('menu/delete',array('id' => $menu->id))?>" data-original-title="Delete">
                                <i class="glyphicon glyphicon-trash"></i>
                            </a>
                        </td>
                    </tr>  
                    <?php endforeach;?>
                </tbody>
            </table>
        </div>    
        <div class="clearfix"></div>
    </div>
</div>
